﻿var ns = namespace("kaskelot.sp.ui");

ns.cookies = function () {
	function setCookie(name, data) {
		$.cookie(name, JSON.stringify(data));
	}

	function getCookie(name) {
		var v = $.cookie(name);
		if (v != undefined) {
			return JSON.parse(v);
		}
	}

	return {
		setCookie: setCookie,
		getCookie: getCookie
	};
}();